<template>
	<view :style="viewColor">
		<div class="detop">
			<image :src="imgHost + '/index/denlu.png'" mode=""></image>
			<p  class="yuang">创建企业名片</p>
			<div class="qiye">
				<div @click="myisbos">我是BOSS</div>
				<div @click="myissta">我是员工</div>
			</div>
		</div>
		<div class="decen">
			<div></div>
			<span>或者</span>
		</div>
		<div class="detop">
			<image :src="imgHost + '/index/denluo.png'" mode=""></image>
			<p class="yuang">我没有企业，想创建个人名片</p>
			<div @click="soloCard">我的名片</div>
		</div>
	</view>
</template>

<script>
	import {
		HTTP_REQUEST_URL
	} from '@/config/app.js';
	import { mapGetters } from 'vuex';
	export default {
		data() {
			return {
				imgHost: HTTP_REQUEST_URL + '/mingpian',
			};
		},
		computed: {
			...mapGetters(['viewColor']),
		},
		onShareAppMessage(e) {
			return { // 自定义分享内容
				title: '创建名片',
				path: '/pages/userminp/denlu/denlu'
			}
		},
		onShareTimeline() {
			return {
				title: '创建名片',
				path: '/pages/userminp/denlu/denlu'
			};
		},
		methods: {
			myisbos() {
				uni.navigateTo({
					url: '/pages/userminp/myisboss/myisboss'
				})
			},
			myissta() {
				uni.navigateTo({
					url: '/pages/userminp/myisv/myisv'
				})
			},
			soloCard(){
				uni.navigateTo({
					url: '/pages/userminp/soloCard/soloCard'
				})
			}
		}
	}
</script>

<style lang="scss">
	.decen {
		position: relative;
          top: 90rpx;
		padding: 0rpx 30rpx;

		div {
			height: 3rpx;
			background-color: #999;
		}

		span {
			display: inline-block;
			background-color: #f5f5f5;
			position: absolute;
			top: -20rpx;
			left: 50%;
			margin-left: -28rpx;
			font-weight: 400;
			font-size: 28rpx;
			line-height: 44rpx;
			text-align: left;
			color: #999;
		}
	}

	.detop {
		padding-top: 160rpx;
		margin: auto;
		text-align: center;

		image {
			width: 338rpx;
			height: 255.04rpx;
		}

		.yuang{
			margin-top: 40rpx;
			margin-bottom: 40rpx;
			font-weight: 700;
			font-size: 36rpx;
			line-height: 40rpx;
			color: #000;
		}

		div {
			margin: auto;
			width: 464rpx;
			height: 96rpx;
			border-radius: 24rpx;
			background: var(--view-theme);
			box-shadow: 0 12rpx 36rpx rgba(193, 0, 0, 0.1);
			font-weight: 600;
			font-size: 34rpx;
			line-height: 96rpx;
			text-align: center;
			color: #fff;
		}
		.qiye{
			display: flex;
			background-color: transparent;
			&>div{
				width: 50%;
				margin: 0 10rpx;
			}
		}
	}
</style>
